d = {'a': 100, 'b': 200, 'c': 300}

for key, value in d.items():
    print(key, '=', value)


def fn(a, b, c):
    return a * b * c


t = (10, 20, 30)
print(fn(*t))


# 任意个数的数字相乘
def fn2(*a):
    result = 1
    for i in a:
        if i == 0:
            result *= 0
        result *= i
    return result


print(fn2(-10, -20, 12))
print(fn2(12))
